package escritorio.conn;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	public Connection getConnection() {

		try {
			return DriverManager.getConnection(
					"jdbc:mysql://localhost:3306/escritorioAdvocacia",
					"ricardo", "canudos");
		} catch (SQLException e) {
			throw new ConnErro(null, e);
		

		}

	}

}
